package com.itgaoshu.hospitalproject.mapper;

import com.itgaoshu.hospitalproject.bean.Register;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface LeaveMapper {
    //将转科室的病人的原有的病床改成空床
    @Update("update bed set state=0 where bedid=(select bedNum from register where registerid=#{registerid}) ")
    int updateBed(Register register);
}
